export default [
  {
    path: "/home",
    name: "home",
    //路由懒加载，当路由被调用时，才会将这个组件挂载上去，提高了效率。
    component: () => import("@/views/Home"),
    children: [
      {
        path: "/",
        redirect: "/home/homepage",
      },
      {
        path: "/home/homepage",
        name: "homepage",
        component: () => import("@/views/HomePage"),
      },
      {
        path: "/home/staff/list",
        name: "staff-list",
        component: () => import("@/views/staff/list.vue"),
      },
      {
        path: "/home/staff/detail/:id",
        name: "staff-detail",
        component: () => import("@/views/staff/detail.vue"),
      },
      {
        path: "/home/notice/list",
        name: "notice-list",
        component: () => import("@/views/Notice/index.vue"),
      },
      {
        path: "/home/notice/addnotice",
        name: "addnotice",
        component: () => import("@/views/AddNotice"),
      },
      {
        path: "/home/notice/detail/:id",
        name: "notice-detail",
        component: () => import("@/views/Notice/detail.vue"),
      },
      {
        path: "/home/application/list",
        name: "application-list",
        component: () => import("@/views/Application/list.vue"),
      },
      {
        path: "/home/schedule/schefrom",
        name: "schefrom",
        component: () => import("@/views/Schedule/ScheFrom"),
      },
      {
        path: "/home/schedule/scherule",
        name: "scherule",
        component: () => import("@/views/Schedule/ScheRule"),
      },
    ],
  },
  // {
  //   path: "/home/schedule",
  //   name: "schedule",
  //   component: () => import("@/views/Schedule"),
  //   children: [
  //     {
  //       path: "/home/schedule",
  //       redirect: "/home/schedule/schefrom",
  //     },
  //     {
  //       path: "/home/schedule/schefrom",
  //       name: "schefrom",
  //       component: () => import("@/views/Schedule/ScheFrom"),
  //     },
  //     {
  //       path: "/home/schedule/scherule",
  //       name: "scherule",
  //       component: () => import("@/views/Schedule/ScheRule"),
  //     },
  //     {
  //       path: "/home/schedule/schemanage",
  //       name: "schemanage",
  //       component: () => import("@/views/Schedule/ScheManage"),
  //     },
  //   ],
  // },
  // 重定向，用户最初访问网站时定位在首页
  {
    path: "*",
    redirect: "/home",
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/Login"),
  },
  // {
  //   path: "/test",
  //   name: "test",
  //   component: () => import("@/views/Test"),
  // },


];
